repo: Fix major performance regression with --scan-hardlinks
authorColin Walters <walters@verbum.org>
Fri, 13 Feb 2015 21:34:52 +0000 (16:34 -0500)
committerColin Walters <walters@verbum.org>
Fri, 13 Feb 2015 21:36:07 +0000 (16:36 -0500)
commit49bdbf1db0930c5aa30a604945d92fb4782ed423
tree9415e2b5b910a03a6621c83cac041a3ce5401761
parent64363c26acfcc2e029dae138810310d3d6d8117e
repo: Fix major performance regression with --scan-hardlinks

gnome-continuous uses the ostree_repo_scan_hardlinks() mode to
avoid re-checksumming everything.  However, when I ported the commit
code to use openat() and friends, this optimization was lost.

Re add it.  The difference is about 15s versus 5 minutes.
src/libostree/ostree-repo-commit.c